<!DOCTYPE html>
<html>

<head>
    <title>Vue源码剖析</title>
    <script src="../../dist/vue.js"></script>
</head>

<body>
    <div id="demo">
        <h1>初始化流程</h1>
        <p>{{foo}}</p>
        <foo></foo>
        <div v-for="item in list">{{item}}</div>
    </div>
    <script>

        Vue.component('foo', {
            name: 'Foo',
            render(h) {
                return h('span', '123123123')
            }
        });

        // render > template > el
        // 创建实例
        const app = new Vue({
            el: '#demo',
            // template: '<div>template</div>',
            // template: '#app',
            // render(h){return h('div','render')},
            data: {
                foo: 'foo',
                show: false,
                list: [1, 2, 3]
            }
        })
        console.log(app);

    </script>
</body>

</html>